{% extends "auth_base.html" %}

{% block title %}首页 - 期末成绩登记统计分析系统{% endblock %}

{% block styles %}
<style>
  body {
    background: url("{{ url_for('static', filename='bg.jpg') }}") no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .welcome-container {
    background: rgba(255, 255, 255, 0.6);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 600px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .system-title {
    color: #333;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 40px;
  }

  .button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  .btn-custom {
    background-color: white;
    color: #498AE8;
    border: 2px solid #498AE8;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
  }

  .btn-custom:hover {
    background-color: #498AE8;
    color: white;
    transform: translateY(-2px);
  }
</style>
{% endblock %}

{% block content %}
<div class="welcome-container">
  <h1 class="system-title">期末成绩登记统计分析系统</h1>
  <div class="button-group">
    <a href="{{ url_for('auth.login') }}" class="btn-custom">登录</a>
    <a href="{{ url_for('auth.register') }}" class="btn-custom">注册</a>
  </div>
</div>
{% endblock %}